<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <cpn1></cpn1>
  <cpn2></cpn2>
</div>
<script src="../js/vue.js"></script>
<script>
  const cpn1 = Vue.extend({//(子组件)
    template: `<div>
                <ul>
                  <li>猴子</li>
                  <li>猪子</li>
                 <li>静子</li>
                </ul>
              </div>`
  });
  const cpn2 = Vue.extend({//(父组件)
    template: `<div>
                <cpn1></cpn1>
                <ul>
                  <li>猴子</li>
                  <li>猪子</li>
                 <li>静子</li>
                </ul>
              </div>`,
    components:{
      cpn1:cpn1
    }

  });


  const vm = new Vue({
    el: '#app',
    data: {
      message: ''
    },
    components: {
      cpn1: cpn1,
      cpn2:cpn2
    }
  })
</script>

</body>
</html>